package com.agricultural.robot.model;

/**
 * 环境数据模型
 */
public class EnvironmentData {
    private int soilMoisture; // 土壤湿度百分比
    private double temperature; // 温度(摄氏度)
    private double windSpeed; // 风速(m/s)
    private String cropGrowthStatus; // 作物生长状态

    public int getSoilMoisture() {
        return soilMoisture;
    }

    public void setSoilMoisture(int soilMoisture) {
        this.soilMoisture = soilMoisture;
    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public double getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(double windSpeed) {
        this.windSpeed = windSpeed;
    }

    public String getCropGrowthStatus() {
        return cropGrowthStatus;
    }

    public void setCropGrowthStatus(String cropGrowthStatus) {
        this.cropGrowthStatus = cropGrowthStatus;
    }

    @Override
    public String toString() {
        return "环境数据 [土壤湿度=" + soilMoisture + "%, 温度=" + temperature + "°C, 风速=" + windSpeed + "m/s, 作物生长状态=" + cropGrowthStatus + "]";
    }
}
